<template>
<div>
    <div class="dahezi">
        <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item >🏠</el-breadcrumb-item>
            <el-breadcrumb-item>糖尿病文章</el-breadcrumb-item>
        </el-breadcrumb>
        <div class="hezizizi">
            <iframe src ="https://baike.baidu.com/item/%E7%B3%96%E5%B0%BF%E7%97%85/100969?fr=aladdin"
                    height="1000px"
                    width="90%"
            >
            </iframe>
        </div>
    </div>
</div>
</template>

<script>
    export default {
        name: "jieshao",
        data () {
            return {
            }
        },
        mounted() {
            /**
             * iframe-宽高自适应显示
             */
            function changeMobsfIframe() {
                const mobsf = document.getElementById('mobsf');
                const deviceWidth = document.body.clientWidth;
                const deviceHeight = document.body.clientHeight;
                mobsf.style.width = (Number(deviceWidth) - 240) + 'px'; //数字是页面布局宽度差值
                mobsf.style.height = (Number(deviceHeight) - 64) + 'px'; //数字是页面布局高度差
            }

            changeMobsfIframe()

            window.onresize = function () {
                changeMobsfIframe()
            }
        }
    }
</script>



<style scoped>
    .hezi {
        width: 100%;
        height: 1000px;
        display: flex;
        justify-content: center;
        /*align-items:center;*/
    }
    .dahezi{
        margin-top: 7px;
        height: 300px;
        background-color: #fffacd;
    }
    .hezizizi{
        padding-top: 5px;
        margin-left: 10%;
    }
</style>
